#include <iostream>
using namespace std;

class Box
{
public:
    void InitBox(int x, int y, int z); //设置Box的尺寸
    void setVolume();            //计算Box的体积
    void setArea();             //计算Box的表面积
    void show();              //输出盒子的信息，输出形式见“输出说明”
private:
    int Length; //Box的长度
    int Width;   //Box的宽度
    int Height;  //Box的高度
};

void Box::InitBox(int x, int y, int z)
{
    Length = x;
    Width = y;
    Height = z;
}

void Box::setVolume()
{
    cout << Length * Width * Height << endl;
}

void Box::show()
{
    cout << Length << ' ' << Width << ' ' << Height << endl;
}

void Box::setArea()
{
    int ret = 0;
    ret += Length * Width * 2 + Length * Height * 2 + Width * Height * 2;
    cout << ret;
}

int main()
{
    int intLength, intWidth, intHeight;
    Box box;
    cin >> intLength;
    cin >> intWidth;
    cin >> intHeight;
    box.InitBox(intLength, intWidth, intHeight);
    box.show();
    box.setVolume();
    box.setArea();
    return 0;
}


